package Oop.ooptest.test06;

public class Computer {
    private String brand;
    private float c;
    private float k;

    private String color;

    public Computer() {
        System.out.println("父类被创建了");
    }

    public Computer(String brand, float c, float k, String color) {
        this.brand = brand;
        this.c = c;
        this.k = k;
        this.color = color;
    }
    //定义私有方法
    private void setA(){
        System.out.println("----w我是私有方法-----");
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public float getC() {
        return c;
    }

    public void setC(float c) {
        this.c = c;
    }

    public float getK() {
        return k;
    }

    public void setK(float k) {
        this.k = k;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}
